package com.probox.common.entity.vo.system;

import cn.hutool.core.util.ObjectUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class WorkbenchInfoVo implements Serializable {
    /**
     * 技术人名称
     */
    private String staffName;
    /**
     * 项目名称和客户留言
     */
    private String projectDesc;

    /**
     * 项目名称
     */
    private String serviceName;

    /**
     * 客户留言
     */
    private String customerMsg;


    private List<WorkbenchInfoDetailVo> detailVo;

    public String getProjectDesc() {
        if (ObjectUtil.isEmpty(projectDesc) && ObjectUtil.isNotEmpty(customerMsg)) {
            return customerMsg;
        } else if (ObjectUtil.isEmpty(customerMsg) && ObjectUtil.isNotEmpty(projectDesc)) {
            return projectDesc;
        } else if (ObjectUtil.isNotEmpty(customerMsg) && ObjectUtil.isNotEmpty(projectDesc)) {
            return projectDesc + ";" + customerMsg;
        } else {
            return "";
        }
    }
}
